package com.luomu.base.biz.cookBook.excel.impl;

import com.luomu.base.api.bo.ReqInfo;
import com.luomu.base.api.cookBook.excel.bo.CommonExportResultBO;
import com.luomu.base.biz.cookBook.excel.po.ExportFilePO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author yanhan
 * @since 2024-11-29
 * @version 1.0
 * @Description 公共导出接口。调用   exportExcel()
 */

@Service
public abstract class AbstractCommonExcelExportStrategy {

	protected Logger logger = LoggerFactory.getLogger(AbstractCommonExcelExportStrategy.class);

	/**
	 * 获取来源
	 */
	public abstract Integer getOriginType();

	/**
	 * 执行
	 */
	public abstract CommonExportResultBO handler(ReqInfo reqInfo, ExportFilePO po);

	/**
	 * 获取文件名称
	 */
	public abstract String getFileName(String requestParam);
}